home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 3885
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5235
- LinkTopic = "Form1"
- ScaleHeight = 3885
- ScaleWidth = 5235
- StartUpPosition = 3 'Windows Default
- Begin InetCtlsObjects.Inet InetWeb
- Left = 3960
- Top = 600
- _ExtentX = 1005
- _ExtentY = 1005
- _Version = 393216
- End
- Begin VB.CommandButton Command2
- Caption = "&Save it"
- Height = 255
- Left = 2760
- TabIndex = 3
- Top = 3120
- Width = 1215
- End
- Begin VB.CommandButton Command1
- Caption = "&Get It"
- Height = 255
- Left = 600
- TabIndex = 2
- Top = 3120
- Width = 1215
- End
- Begin VB.Frame Frame1
- Height = 3255
- Left = 120
- TabIndex = 0
- Top = 240
- Width = 4815
- Begin VB.TextBox Text1
- Height = 285
- Left = 480
- TabIndex = 4
- Text = "http://"
- Top = 2520
- Width = 3495
- End
- Begin VB.Frame Frame2
- Caption = "HTML CODE"
- Height = 2055
- Left = 120
- TabIndex = 1
- Top = 240
- Width = 4575
- Begin VB.TextBox Text2
- Height = 1695
- Left = 120
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 5
- Top = 240
- Width = 4335
- End
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- Dim strTempData As String
- With InetWeb
- .AccessType = icUseDefault
- Text2 = .OpenURL(Text1.Text)
- End With
- End Sub
- Private Sub Command2_Click()
- Dim intFreeFile As Integer
- Dim strTempString As String
- Dim strLocation As String 'path of HTML file to save local
- intFreeFile = FreeFile
- strLocation = "c:\MyFile.htm"
- Open strLocation For Output As #intFreeFile
- Print #intFreeFile, Text2.Text
- Close #intFreeFile
- End Sub
-